/* Copyright (c) 2004-2024 peigen.info. All rights reserved. */

package info.peigen.hotpot.business.account.facade.order.freeze;

import info.peigen.hotpot.business.account.facade.enums.AccountFreezeType;
import info.peigen.hotpot.business.account.facade.info.AccountFreezeInfo;
import info.peigen.hotpot.business.account.facade.order.base.AbstractAccountServiceOrder;
import info.peigen.hotpot.common.core.lang.money.Money;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AccessLevel;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import lombok.experimental.FieldDefaults;
import lombok.experimental.SuperBuilder;

import java.util.List;

/**
 * <b>(FreezeWithdrawOrder)</b>
 * 冻结 提现
 *
 * @author Peigen
 * @version 1.0.0
 * @since 2022/3/30
 */
@EqualsAndHashCode(callSuper = true)
@SuperBuilder
@Data
@FieldDefaults(level = AccessLevel.PRIVATE)
@Accessors(chain = true)
public class FreezeWithdrawOrder extends AbstractAccountServiceOrder {
    /** 提现客户账户Id */
    @NotEmpty
    String            withdrawCustomerAccountId;
    /** 交易号 */
    @NotEmpty
    String            tradeId;
    /** 冻结类型 */
    @Builder.Default
    AccountFreezeType freezeType   = AccountFreezeType.Withdraw;
    /** 冻结|解冻金额，包括币种 */
    @Builder.Default
    Money             freezeAmount = Money.zero();
    /** 描述 */
    String reason;
    /** 冻结/解冻账户信息 */
    @NotNull
    List<AccountFreezeInfo> freezeAccountList;

}
